package com.sinothk.base.version.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 版本信息
 * @Author: Liangyt
 * @Date:   2022-02-17
 * @Version: V1.0
 */
@Data
@TableName("biz_app_version")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="biz_app_version对象", description="版本信息")
public class AppVersion implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**版本名称*/
	@Excel(name = "版本名称", width = 15)
    @ApiModelProperty(value = "版本名称")
    private String appName;
	/**版本编号*/
	@Excel(name = "版本编号", width = 15)
    @ApiModelProperty(value = "版本编号")
    private Integer appNum;
	/**强制更新*/
	@Excel(name = "强制更新", width = 15)
    @ApiModelProperty(value = "强制更新")
    private Integer appMustUpdate;
	/**应用描述*/
	@Excel(name = "应用描述", width = 15)
    @ApiModelProperty(value = "应用描述")
    private String appDescribe;
	/**更新内容*/
	@Excel(name = "更新内容", width = 15)
    @ApiModelProperty(value = "更新内容")
    private String appUpdateInfo;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
    private String orgCode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    @ApiModelProperty(value = "状态：0发布；1下架")
    private Integer state;

    @ApiModelProperty(value = "文件地址")
    private String filePath;
}
